package com.teatrace.model.process;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;

import com.teatrace.model.produce.MaterialPackage;

@Entity
@Table(name="rolling_status")
public class RollingStatus {
	@Id
	@Column(name="rolling_status_id")
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	private long id;
	
    private String thickness;
    private String shape;
    
    @Column(name="p_content")
    private String pcontent;
    
    @Column(name="k_content")
    private String kcontent;
    
    private String description;
    
    @Column(columnDefinition="datetime")
    private Date time;
    
    @OneToOne 
    @JoinColumn(name="material_package_id")
    private MaterialPackage materialpackage;//
    
    
	public Date getTime() {
		return time;
	}
	public void setTime(Date time) {
		this.time = time;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	
	public long getId() {
		return id;
	}
	public void setId(long id) {
		this.id = id;
	}
	public String getThickness() {
		return thickness;
	}
	public void setThickness(String thickness) {
		this.thickness = thickness;
	}
	public String getShape() {
		return shape;
	}
	public void setShape(String shape) {
		this.shape = shape;
	}
	public String getPcontent() {
		return pcontent;
	}
	public void setPcontent(String pcontent) {
		this.pcontent = pcontent;
	}
	public String getKcontent() {
		return kcontent;
	}
	public void setKcontent(String kcontent) {
		this.kcontent = kcontent;
	}
	public MaterialPackage getMaterialpackage() {
		return materialpackage;
	}
	public void setMaterialpackage(MaterialPackage materialpackage) {
		this.materialpackage = materialpackage;
	}
}
